package com.nsqt.biz.service;

import com.nsqt.biz.domain.SoftwareDO;

import java.util.List;
import java.util.Map;

/**
 * 软件
 */
public interface SoftwareService {
    SoftwareDO get(Integer id);

    SoftwareDO getBySn(String sn);

    List<SoftwareDO> list(Map<String, Object> map);

    List<SoftwareDO> listUnsubmit(Map<String, Object> map);

    List<SoftwareDO> listApproval(Map<String, Object> map);

    List<SoftwareDO> listExcel(Map<String, Object> map);

    List<SoftwareDO> exportApproval(Map<String, Object> map);

    int count(Map<String, Object> map);

    int countUnsubmit(Map<String, Object> map);

    int countPresubmit(Map<String, Object> map);

    int countApproval(Map<String, Object> map);

    int save(SoftwareDO software);

    int update(SoftwareDO software);

    int remove(Integer id);

    int approval(Integer id);

    int approval(String sn);

    int mail(String sn);

    int unApproval(Integer id);

    int batchRemove(Integer[] ids);

    int preSubmit(String sn);

    int cancelSubmit(Integer id);

    int batchSubmit(Integer[] ids);
}
